//
//  PurchaseDetailTableViewCell.m
//  YYPHSpeedJump
//
//  Created by speedjump on 16/1/29.
//  Copyright © 2016年 sujiang. All rights reserved.
//

#import "PurchaseDetailTableViewCell.h"
#import "RelevantCollectionViewCell.h"
#import "BigImageViewController.h"
@implementation PurchaseDetailTableViewCell

- (void)awakeFromNib {
    // Initialization code
   // [self createView];
  
}
//- (void)createView
//{
//    
//    UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc]init];
//    layout.minimumInteritemSpacing = 0;
//    layout.minimumLineSpacing =9;
//    layout.itemSize = CGSizeMake(250, 250);
//    
//    [layout setScrollDirection:UICollectionViewScrollDirectionHorizontal];
//    layout.sectionInset = UIEdgeInsetsMake(9, 9, 9, 9);
//    
//    self.collectionV = [[UICollectionView alloc] initWithFrame:self.imageURL.bounds collectionViewLayout:layout];
//    self.collectionV.backgroundColor = [UIColor whiteColor];
//    self.collectionV.delegate = self;
//    self.collectionV.dataSource =self;
//    [self.imageURL addSubview:self.collectionV];
//    //注册单元格
//    [self.collectionV registerNib:[UINib nibWithNibName:@"RelevantCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"relevantCell"];
//
//}
//#pragma mark -------collectionViewDelegate--------------
//- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
//{
//    return 1;
//}
//- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
//{
//    return self.imageArr.count;
//}
//- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
//{
//    RelevantCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"relevantCell" forIndexPath:indexPath];
//    cell.imageView.contentMode = UIViewContentModeScaleAspectFit;
//    cell.imageView.layer.cornerRadius =5;
//    cell.imageView.layer.borderWidth = 1;
//    cell.imageView.layer.borderColor =[UIColor grayColor].CGColor;
//    [cell.imageView sd_setImageWithURL:[NSURL URLWithString:self.imageArr[indexPath.row]] placeholderImage:nil];
//    cell.backgroundColor = [UIColor whiteColor];
//    return cell;
//}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
